package jmine.tec.scheduling.condition;

import jmine.tec.scheduling.ScheduledJobExecutionContext;

/**
 * Define uma condição para que uma tarefa seja executada.
 * 
 * @author ricardo
 */
public interface Condition {

    /**
     * Checks if a task should be executed by the current application instance
     * 
     * @param context context
     * @return boolean
     */
    boolean isSatisfied(ScheduledJobExecutionContext context);
}
